package com.wxcms.service.impl;

import com.wxcms.domain.EaspAdmin;
import com.wxcms.mapper.EaspAdminDao;
import com.wxcms.service.EaspAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class EaspAdminServiceImpl implements EaspAdminService{

	@Autowired
	private EaspAdminDao entityDao;

	public EaspAdmin getById(String id){
		return entityDao.getById(id);
	}
	
	public EaspAdmin getByOpenid(String openid){
		return entityDao.getByOpenid(openid);
	}

	public List<EaspAdmin> listForPage(EaspAdmin searchEntity){
		return entityDao.listForPage(searchEntity);
	}

	public void add(EaspAdmin entity){
		entityDao.add(entity);
	}

	public void update(EaspAdmin entity){
		entityDao.update(entity);
	}

	public void delete(EaspAdmin entity){
		entityDao.delete(entity);
	}

	public void deleteAll(){
		entityDao.deleteAll();
	}

	public EaspAdmin getSingleEaspAdmin(){
		return entityDao.getSingleEaspAdmin();
	}

}